package com.atguigu.springcloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author hjl
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {
    /**
     * 返回状态码
     */
    private Integer code;
    /**
     * msg
     */
    private String message;
    /**
     * 数据
     */
    private T data;

    public CommonResult(Integer code,String message){
        this(code,message,null);
    }
}
